<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>市代列表</title>
		<link rel="stylesheet" href="__OEM__/css/iconfont.css" />
		<link rel="stylesheet" href="__OEM__/css/css.css" />
	</head>

	<body>
		{include file="public/header" /}
		<div class="index_conbox">
			<div class="index_content clearfix">
				{include file="public/lefter" /}
				<div class="right"><!--右侧内容-->
					<div class="rigtop" >
						<span class="title">业务员</span>
						
					</div>
					<div class="indrig_con" style="position: relative;">
						{if $Think.session.user_level==3 && $Think.session.user_type==1}
						<div class="zizh_btnbox" style="top: -58px;right:30px">
							<button class="zizh_btn" type="button"><i class="iconfont icon-jia"></i>增加业务员</button>
						</div>
						{/if}
						<div class="zizh_conbox" style="padding-top: 20px;">
							<!--选项卡内容开始-->
							<div class="zizh_con_1">
								<div class="chax_conbox">
									<div class="chax_jiegnr">
										<table class="zizh_table1 zizh_table2">
											<thead>
												<tr>
													<th>姓名</th>
													<th>电话</th>
													<th>创建时间</th>
												</tr>
											</thead>
											<tbody id="tbody">
												{volist name="list" id="ad" empty="$empty"}
												<tr>
													<td><a class="iconfont icon-erweima"  href="javascript:;" onclick="fukuan('{:url('accounts/tuiguang',['id'=>$ad['id']])}')"></a>{$ad.name}</td>
													<td>{$ad.mobile}</td>
													<td>{$ad.add_time}</td>
												</tr>
												{/volist}</tbody>
										</table>
									</div>
								</div>
							</div>
						</div>

					</div>
				</div>
			</div>
		</div>
		{include file="public/footer" /}
		
	</body>
<script>
		$(".zizh_btn").click(function(){
			layer.open({
			  type: 2,
			  title: '增加业务员',
			  shadeClose: true,
			  shade: 0.8,
			 area: ['500px', '280px'],
			  content: "{:url('accounts/add_manager')}"
			}); 
		})
		function fukuan(url) {
				layer.open({
				  type: 2,
				  title: '业务员推广二维码',
				  shadeClose: true,
				  shade: 0.8,
				   area: ['426px', '658px'],
				  content: url
				}); 
			}
</script>
</html>
